Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSB] Fix the behaviour of publishing unavailable state interfaces when they are previously available (backport #1331) #1340

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 1, 2024

Hello!

While reviewing the Example 13, I came across this situation described in the comment : ros-controls/ros2_control_demos#417 (comment)

After debugging, the resource manager properly sets the state interfaces. However, some internal variables are not properly reset, and this results in the publishing of previously available interfaces.

The proposed fix fixes the issue of properly publishing the state of the known state interfaces alone


This is an automatic backport of pull request #1331 done by Mergify.

…en they are previously available (#1331)

* Add test to reproduce the behaviour of ros-controls/ros2_control_demos#417 (comment)

* Add fix to solve the issue of the publishing non-existing joint_states

(cherry picked from commit 87f21b3)
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

Attention: Patch coverage is 38.09524% with 39 lines in your changes missing coverage. Please review.

Project coverage is 65.07%. Comparing base (b78380c) to head (2aab222).
Report is 5 commits behind head on iron.

Files with missing lines Patch % Lines
..._broadcaster/test/test_joint_state_broadcaster.cpp 35.00% 0 Missing and 39 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             iron    #1340      +/-   ##
==========================================
- Coverage   65.09%   65.07%   -0.02%     
==========================================
  Files         103      107       +4     
  Lines       11336    12184     +848     
  Branches     7159     7495     +336     
==========================================
+ Hits         7379     7929     +550     
- Misses       1469     1534      +65     
- Partials     2488     2721     +233     
Flag Coverage Δ
unittests 65.07% <38.09%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
..._state_broadcaster/src/joint_state_broadcaster.cpp 83.04% <100.00%> (+1.39%) ⬆️
..._broadcaster/test/test_joint_state_broadcaster.cpp 49.43% <35.00%> (-1.35%) ⬇️

... and 83 files with indirect coverage changes

@christophfroehlich christophfroehlich merged commit b4dd5ae into iron Nov 1, 2024
9 of 12 checks passed
@christophfroehlich christophfroehlich deleted the mergify/bp/iron/pr-1331 branch November 1, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants